﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;

namespace DiscoveryLogic.DataServices.DataObjects.Entities
{
    public class FaultDetail
    {
        //- @Message -//
        public String Message { get; set; }

        //+
        //- @CreateFaultDetail -//
        public static FaultDetail CreateFaultDetail(Exception exception)
        {
            return CreateFaultDetail(exception.Message);
        }
        public static FaultDetail CreateFaultDetail(String message)
        {
            return new FaultDetail
            {
                Message = message
            };
        }
    }
}
